<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="ReportJournalVoucher.aspx.cs" Inherits="Admin_ReportJournalVoucher" %>

<%@ Register TagPrefix="rsweb" Namespace="Microsoft.Reporting.WebForms" Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table id="tblAttachFile" runat="server">
        <tr>
            <td>
                Attached file
            </td>
            <td>
                <asp:HyperLink runat="server" ID="hpl_AttachedFile"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top">
                Approval status
            </td>
            <td>
                <div id="div_ApprovalStatus" runat="server">
                </div>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button runat="server" CssClass="button" ID="btn_RequestForApproval" Text="Request For Approval"
                    OnClick="btn_RequestForApproval_Click" Visible="False" />
                <asp:Button runat="server" CssClass="button" ID="btn_Approve" Text="Approve" Visible="False"
                    OnClick="btn_Approve_Click" />
                <a rel="modal" href="#messages"><span class="button" id="btn_RejectPopup" runat="server"
                    visible="False">Reject</span></a>
            </td>
        </tr>
    </table>
    <br />
    <div id="messages" style="display: none">
        <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
        <h4>
            Reason</h4>
        <fieldset>
            <asp:TextBox runat="server" ID="dataVoidReason" TextMode="MultiLine" CssClass="textarea"
                Width="97.5%"></asp:TextBox>
        </fieldset>
        <fieldset>
            <asp:Button CssClass="button" ID="btn_Reject" Text="Reject" OnClick="btn_Reject_Click"
                runat="server" CausesValidation="False" />
        </fieldset>
    </div>
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
        Height="700px" Width="1100px">
        <LocalReport ReportPath="Admin\Report\JournalVoucher.rdlc">
            <DataSources>
                <rsweb:ReportDataSource Name="DSJournalVoucher_Journal" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>
</asp:Content>
